package com.zx.mes.hyl.entity;

import lombok.*;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 向rabbitmq 发送的消息体
 * @author huayunlong
 * @date 2018-8-6
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Message<T> implements Serializable{

    private Map<String, Object> map = new HashMap<>();

    private T message;

    private List<T> list = new ArrayList<>();

}
